package com.cn.wanxi.servlet;

import com.cn.wanxi.service.CompanyService;
import com.cn.wanxi.service.NavService;

import javax.servlet.http.HttpServletRequest;

/**
 * 不是页面控制层
 */
class TopAndFootServlet {
    static void getData(HttpServletRequest req) {
        req.setAttribute("companyModel", new CompanyService().getCompanyModel());
        req.setAttribute("navModels", new NavService().getNavModels());
    }
}
